import { modelManageService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  // 模型列表
  getModelList: {
    url: '/macro-library/model/endpoint/v1/list',
    method: 'get'
  },
  //模版版本列表
  getVerList: {
    url: '/macro-library/model/endpoint/v1/version-list',
    method: 'get'
  },
  //上传模型-保存
  saveMode: {
    url: '/macro-library/model/endpoint/v1/save-model',
    method: 'post'
  },
  //编辑模型
  editMode: {
    url: '/macro-library/model/endpoint/v1/update',
    method: 'post'
  },
  //更新模型
  updateMode: {
    url: '/macro-library/model/endpoint/v1/version-save',
    method: 'post'
  },
  //模型文件上传
  modelFieldUpload: {
    // url: '/macro-library/model/endpoint/v1/upload',//原来的接口    
    url: '/macro-library/model/endpoint/v2/upload',//新的接口
    method: 'post'
  },
  // 删除模型
  deleteModel: {
    url: '/macro-library/model/remove/zjjg',
    method: 'post'
  }
}
export default modelManageService(settings)
